package chapter008.point2;

/**
 * 修饰符
 *
 * @author Jack魏
 */
public class Package2 {
    public String name;
    protected String sex;
    private int age;
    String address;

    public void publicFunction(){
        System.out.println("Package2 public 修饰符");
    }

    protected void protectedFunction(){
        System.out.println("Package2 protected 修饰符");
    }

    private void privateFunction(){
        System.out.println("Package2 private 修饰符");
    }

    void function(){
        System.out.println("Package2 public 修饰符");
    }
}
